package com.nuoniu.sibanyun.mapper.work;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.entity.work.WorkReportForm;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


/**
 * <p>
 * 工作报表 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-08-14
 */
public interface WorkReportFormMapper extends BaseMapper<WorkReportForm> {

    @Update("update oa_workreport set status=0, submit_id=null, submit_name='', submit_date=null, cc_id='', cc_name='' where id = #{id}")
    void returnReportForm(WorkReportForm reportForm);

    Page<WorkReportForm> pageList(Page page, @Param("reportForm") WorkReportForm reportForm);
}
